import { createApp } from 'vue'
//引入模板全局样式
import '@/styles/index.scss'

import App from './App.vue'
//svg插件需要配置代码
import 'virtual:svg-icons-register'
//引入自定义插件对象
import gloalComponent from '@/components'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//@ts-ignore 忽略ts文件检测
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
//引入router
import router from './router'
//引入仓库
import store from './store'
import './permisstion'
//@ts-ignore 将自动注册所有组件为全局组件
import DataVVue3 from '@kjgl77/datav-vue3'

const app = createApp(App)
app.use(ElementPlus, {
  locale: zhCn,
})
app.use(router)
app.use(store)
app.use(DataVVue3)

//注册整个项目全局组件
app.use(gloalComponent)

app.mount('#app')
